// 按需导入
import { request } from '@/utils/request.js'
// 获取轮播图的数据
export function getBanner(type) {
  return request({
    url: '/banner',
    params: {
      type
    }
  })
}

export function getPersonalized() {
  return request({
    url: '/personalized?limit=8',
    method: 'get'
  })
}
// 获取歌单列表
export function getPlayListDetail(id) {
  return request({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}